package com.kunya.product.dto;

import lombok.Data;

/**
 * @author zp
 * @Description: 商品秒杀接口暴露DTO对象
 * @date 2018/7/19 15:18
 */
@Data
public class Exposer {

    private boolean exposed;
    private String md5;//加密token
    private Long seckillId;//秒杀商品id
    private Long nowTime;//系统当前时间
    private Long startTime;//秒杀开始时间
    private Long endTime;//秒杀结束时间

    public Exposer(boolean exposed, String md5, Long seckillId) {
        this.exposed = exposed;
        this.md5 = md5;
        this.seckillId = seckillId;
    }

    public Exposer(boolean exposed, Long seckillId, Long nowTime, Long startTime) {
        this.exposed = exposed;
        this.seckillId = seckillId;
        this.nowTime = nowTime;
        this.startTime = startTime;
    }

    public Exposer(boolean exposed, Long seckillId) {
        this.exposed = exposed;
        this.seckillId = seckillId;
    }
}
